import Layout from '@/layouts/index.vue';

export default [
  {
    path: '/posts',
    name: 'posts',
    component: Layout,
    redirect: '/posts',
    meta: {orderNo:2, title: '文章', icon: 'edit-2', expanded: true },

    children: [
      {
        path: 'list',
        name: 'postList',
        component: () => import('@/pages/posts/list.vue'),
        meta: { title: '所有文档' , hidden:true},
      },
      {
        path: 'drafts',
        name: 'postDrafts',
        component: () => import('@/pages/posts/drafts.vue'),
        meta: { title: '草稿' , expanded:true},
      },
      {
        path: 'scheduled',
        name: 'postScheduled',
        component: () => import('@/pages/posts/scheduled.vue'),
        meta: { title: '计划' , expanded:true},
      },
      {
        path: 'published',
        name: 'postPublished',
        component: () => import('@/pages/posts/published.vue'),
        meta: { title: '己发布' , expanded:true},
      },
      {
        path: 'edit/:id?',
        name: 'postsEdit',
        component: () => import('@/pages/posts/edit.vue'),
        meta: { title: '编辑' , expanded:true,hidden:true},
      },
    ],
  },
];
